﻿using DotNet.Utilities.ConsoleHelper;
using PropertyChanged;
using System;
using System.Windows;
using WPFTemplateLib.WpfHelpers;

namespace WPFPractice.Windows
{
    public partial class WinWPFUI : Window
    {
        public WinWPFUI()
        {
            InitializeComponent();
            DataContext = new WPFUIViewModel();
        }
    }

    [AddINotifyPropertyChangedInterface]
    public class WPFUIViewModel: BindableBase
    {
        public WPFUIViewModel()
        {
            SetCommandMethod();

            InitValue();

            Console.SetOut(new ConsoleWriter(s =>
            {
                ShowInfo(s);
            }));
        }

        #region 绑定

        

        #endregion

        /// <summary>
        /// 数据初始化
        /// </summary>
        private void InitValue()
        {
            
        }

        /// <summary>
        /// 命令方法赋值(在构造函数中调用)
        /// </summary>
        private void SetCommandMethod()
        {

        }
    }
}
